package com.zlt.service;

import com.zlt.dto.JobDTO;
import com.zlt.entity.JobType;
import com.zlt.vo.JobVo;
import com.zlt.vo.Pager;

import java.lang.reflect.InvocationTargetException;
import java.util.List;
import java.util.Map;

public interface JobService {

    List<JobType> selectAllType(int parseInt);

    boolean updateJobInfo(JobDTO jobDTO);
    List<JobType> selectAllTypes(int parseInt);//只查看parentid为0的岗位

    boolean insertJob(JobDTO jobDTO) throws InvocationTargetException, IllegalAccessException;

    boolean changeCollection(int jid,int state);//改变收藏状态

    Map<String,Object> checkOne(int jid );//查询岗位详情

    Pager<JobVo> checkCollection(Pager<JobVo> pager);//已收藏的所有岗位

    Pager<JobVo> defaultJob(Pager<JobVo> pager);//默认岗位

    Pager<JobVo> searchJob(Pager<JobVo> pager, JobDTO jobDTO);//搜索岗位

    boolean downJob(Integer parseInt, Integer i);

    Pager<JobVo> selectAllJob(Pager<JobVo> pager, String uid);

    JobVo selectOneJobByJid(Integer jid);

    List<JobType> selectJobTypeByCid();

    boolean addTalk(String hrId, String cid, String jid);
}
